<?php 
class Json{
	static public function do_jsonp_encode($callback,$array) {
	 $json = json_encode ($array);	
	 $jsonp = $callback . '(' . $json . ')';
	 echo $jsonp;
	 exit;
	}
}
?>